package drds.binlog.parse.mysql;

import drds.binlog.common.Authors;
import drds.common.Author;
import lombok.Getter;
import lombok.Setter;

import java.net.InetSocketAddress;

/**
 * 数据库认证信息
 */
@Author(name = Authors.LI_YANG)
public class AuthenticationInfo
{

    @Setter
    @Getter
    private InetSocketAddress inetSocketAddress;            // 主库信息
    @Setter
    @Getter
    private String defaultDatabaseName; // 默认链接的数据库
    @Setter
    @Getter
    private String username;           // 帐号
    @Setter
    @Getter
    private String password;           // 密码


    public AuthenticationInfo()
    {
        super();
    }


    public AuthenticationInfo(InetSocketAddress inetSocketAddress, String defaultDatabaseName, String username, String password)
    {
        this.inetSocketAddress = inetSocketAddress;
        //
        this.defaultDatabaseName = defaultDatabaseName;
        //
        this.username = username;
        this.password = password;

    }


}
